package com.bdqn.service;

import com.bdqn.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * SysUserService服务层接口
 *
 */
public interface SysUserService {

    /**
     * 获得用户列表
     *
     * @param sysUser
     * @return
     */
    public List<SysUser> getList(SysUser sysUser);
    /**
     * 保存用户
     *
     * @param sysUser
     * @return
     */
    public boolean add(SysUser sysUser);

    public int delete(@Param("id")Integer id);

    /**
     * 修改供货商
     */
    public boolean update(SysUser sysUser);


    //实现登录的功能
    SysUser login(String account,String password);
}
